\hypertarget{classVisualBlock}{
\section{VisualBlock Class Reference}
\label{classVisualBlock}\index{VisualBlock@{VisualBlock}}
}
{\tt \#include $<$VisualBlock.h$>$}

Collaboration diagram for VisualBlock:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=56pt]{classVisualBlock__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\_\-\_\-fastcall \hyperlink{classVisualBlock_19ba01bbc2f90d861528bf705b93aa05}{VisualBlock} (TComponent $\ast$Owner)
\item 
\_\-\_\-fastcall \hyperlink{classVisualBlock_88dac1befb8f8aa9d3435c8c35d1ffee}{$\sim$VisualBlock} ()
\item 
\hyperlink{structPosition}{Position} \hyperlink{classVisualBlock_f4bfdf59b184dd79ceaacb57f9acfd66}{getInputPosition} (\hyperlink{classBlockInput}{BlockInput} $\ast$object)
\item 
\hyperlink{structPosition}{Position} \hyperlink{classVisualBlock_840c712434dddf714a3cee9200073114}{getOutputPosition} (\hyperlink{classBlockOutput}{BlockOutput} $\ast$object)
\item 
bool \hyperlink{classVisualBlock_c7db3e3d6aabc762ea055453855c7448}{setConfigButtonGlyph} (Graphics::TBitmap $\ast$bmp)
\item 
void \hyperlink{classVisualBlock_62361923d36c7162a2ce8919e4f0949f}{setTitle} (const AnsiString \&s)
\item 
AnsiString \hyperlink{classVisualBlock_a7581d6b296ce3069bd7e16438fd330e}{getTitle} ()
\item 
bool \hyperlink{classVisualBlock_c484b8959917ac7901aad3ac60740b0d}{updateVisualComponents} ()
\item 
bool \hyperlink{classVisualBlock_22d016593be16c1d77e19c9a42d80afe}{updateHistory} ()
\item 
void \hyperlink{classVisualBlock_8ca3f7d1dcc59e9383df931ed57a76c1}{setSelected} (bool \hyperlink{classVisualBlock_848de7730beb758d3c427f99ab78deaf}{status})
\item 
bool \hyperlink{classVisualBlock_046a93138fb3800d114e176ab9e4c164}{isSelected} ()
\item 
void \hyperlink{classVisualBlock_849044a8c705427b0bce5a6808e53115}{setStatusColor} (TColor cl)
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
\hyperlink{classBlock}{Block} \hyperlink{classVisualBlock_76bfcfa68286004c352c4736635be0cb}{block}
\item 
AnsiString \hyperlink{classVisualBlock_08efb43e1546631cb54848002d809a23}{nameOfBlock}
\item 
int \hyperlink{classVisualBlock_726797ae619bdd874806321c7b878607}{numberOfBlock}
\item 
bool \hyperlink{classVisualBlock_3bc0c90322c4b39a85de000a2d036413}{runned}
\item 
\hyperlink{BlockHistory_8h_1e80e0966c4a2e68a83338258a89f5ae}{vectorBlockHistory} \hyperlink{classVisualBlock_bae4197cd71315bf74e26e9e7f04bc8c}{history}
\item 
vector$<$ \hyperlink{classVisualInput}{VisualInput} $\ast$ $>$ \hyperlink{classVisualBlock_8f4a1e25447f63dd82fef4ca1b5fa036}{leftInput}
\item 
vector$<$ \hyperlink{classVisualInput}{VisualInput} $\ast$ $>$ \hyperlink{classVisualBlock_ea0803cef47e1cd7f3c3fd92268b2d5c}{topInput}
\item 
vector$<$ \hyperlink{classVisualOutput}{VisualOutput} $\ast$ $>$ \hyperlink{classVisualBlock_e87bdb704a2ac4af6bc51b34456fdd1d}{rightOutput}
\item 
vector$<$ \hyperlink{classVisualOutput}{VisualOutput} $\ast$ $>$ \hyperlink{classVisualBlock_c20150edf6b145056e52ef811d3e977a}{bottomOutput}
\item 
VisualFunction \hyperlink{classVisualBlock_b342e90eddc48bc614d0a9da48f0e7e4}{OnConfigClick}
\item 
VisualBlock\_\-FunctionI \hyperlink{classVisualBlock_8fc6c9338da4af652d7d1fe170754f7b}{OnVisualInputSelected}
\item 
VisualBlock\_\-FunctionO \hyperlink{classVisualBlock_2c6a85164bf488a2b1055be8331aa813}{OnVisualOutputSelected}
\item 
VisualBlock\_\-FunctionHI \hyperlink{classVisualBlock_aa5ecd1d9c57caa0a9b08ece183dc9da}{OnVInputHistory}
\item 
VisualBlock\_\-FunctionHO \hyperlink{classVisualBlock_9a624de525f52a202cd57062f42332f3}{OnVOutputHistory}
\item 
VisualBlock\_\-FunctionMove \hyperlink{classVisualBlock_a01dc407b0ccc5d72e4ba2b3cc67bbc0}{OnBlockMove}
\item 
VisualFunction \hyperlink{classVisualBlock_10238a1e11bc16de548c0e0ae7118ccf}{OnUnselect}
\item 
VisualFunction \hyperlink{classVisualBlock_425f00a0257fc0f25e01b8e4eb24f3f7}{OnSelect}
\item 
VisualFunction \hyperlink{classVisualBlock_9398455ed1a288276ddc1845cd409d9f}{OnSelectAdd}
\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_12b120084c71ac8e29f8b527401e9bb6}{SpeedButtonClick} (TObject $\ast$Sender)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_a6eb1b3dcbbbb50d21bfb263935c6780}{InputSelected} (TObject $\ast$Sender)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_79906715a0a58e622284b4be0402d13d}{OutputSelected} (TObject $\ast$Sender)
\item 
void \hyperlink{classVisualBlock_0dd05c49185b9c4ed3c2067c2887207c}{InputShowHistory} (TObject $\ast$Sender)
\item 
void \hyperlink{classVisualBlock_a06f4f819f1ffb8210552be1b2588241}{OutputShowHistory} (TObject $\ast$Sender)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_92cda5ed352c37bdf35821d733a9eec0}{BlockClick} (TObject $\ast$Sender)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_4105b606e41f9682f565a982e5ba78ac}{BlockMouseDown} (TObject $\ast$Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_e4aaf7841bf53a143a3c83df422dc387}{BlockMouseUp} (TObject $\ast$Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
\item 
void \_\-\_\-fastcall \hyperlink{classVisualBlock_f88b17e4ee367aa1bd52e0ba403e3ec9}{BlockMouseMove} (TObject $\ast$Sender, TShiftState Shift, int X, int Y)
\item 
void \hyperlink{classVisualBlock_120c84328c3017aec8fc669d156883a6}{resizeAll} ()
\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
TSpeedButton $\ast$ \hyperlink{classVisualBlock_12c5a7d37bad2fe96c1e681193e46692}{configButton}
\item 
TLabel $\ast$ \hyperlink{classVisualBlock_fb8a08d0bdaabd2f2c9331c73b327e94}{title}
\item 
TPanel $\ast$ \hyperlink{classVisualBlock_848de7730beb758d3c427f99ab78deaf}{status}
\item 
bool \hyperlink{classVisualBlock_6d94e21639a7e021c92a0fd31e859487}{selected}
\item 
bool \hyperlink{classVisualBlock_e8a5a106bf510e7029c0f453e6ecd999}{moving}
\item 
bool \hyperlink{classVisualBlock_b3035554398e30e608325b6c640ace2d}{button}
\item 
TPoint \hyperlink{classVisualBlock_43953361a9b50884f92ed3e9ee90c5b2}{oldPoint}
\end{CompactItemize}


\subsection{Detailed Description}
Klasa wyswietla caly bloczek 

Definition at line 30 of file VisualBlock.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classVisualBlock_19ba01bbc2f90d861528bf705b93aa05}{
\index{VisualBlock@{VisualBlock}!VisualBlock@{VisualBlock}}
\index{VisualBlock@{VisualBlock}!VisualBlock@{VisualBlock}}
\subsubsection[VisualBlock]{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-fastcall VisualBlock::VisualBlock (TComponent $\ast$ {\em Owner})}}
\label{classVisualBlock_19ba01bbc2f90d861528bf705b93aa05}


Konstruktor \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em Owner}]klasa nadrzedna dla tej klasy \end{description}
\end{Desc}


Definition at line 6 of file VisualBlock.cpp.

References BlockClick(), BlockMouseDown(), BlockMouseMove(), BlockMouseUp(), configButton, moving, nameOfBlock, numberOfBlock, OnBlockMove, OnSelect, OnSelectAdd, OnUnselect, OnVInputHistory, OnVisualInputSelected, OnVisualOutputSelected, OnVOutputHistory, runned, selected, SpeedButtonClick(), status, and title.\hypertarget{classVisualBlock_88dac1befb8f8aa9d3435c8c35d1ffee}{
\index{VisualBlock@{VisualBlock}!$\sim$VisualBlock@{$\sim$VisualBlock}}
\index{$\sim$VisualBlock@{$\sim$VisualBlock}!VisualBlock@{VisualBlock}}
\subsubsection[$\sim$VisualBlock]{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-fastcall VisualBlock::$\sim$VisualBlock ()}}
\label{classVisualBlock_88dac1befb8f8aa9d3435c8c35d1ffee}


Destruktor 

Definition at line 85 of file VisualBlock.cpp.

References bottomOutput, configButton, history, leftInput, rightOutput, status, title, and topInput.

\subsection{Member Function Documentation}
\hypertarget{classVisualBlock_12b120084c71ac8e29f8b527401e9bb6}{
\index{VisualBlock@{VisualBlock}!SpeedButtonClick@{SpeedButtonClick}}
\index{SpeedButtonClick@{SpeedButtonClick}!VisualBlock@{VisualBlock}}
\subsubsection[SpeedButtonClick]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::SpeedButtonClick (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_12b120084c71ac8e29f8b527401e9bb6}




Definition at line 190 of file VisualBlock.cpp.

References OnConfigClick.

Referenced by VisualBlock().\hypertarget{classVisualBlock_a6eb1b3dcbbbb50d21bfb263935c6780}{
\index{VisualBlock@{VisualBlock}!InputSelected@{InputSelected}}
\index{InputSelected@{InputSelected}!VisualBlock@{VisualBlock}}
\subsubsection[InputSelected]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::InputSelected (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_a6eb1b3dcbbbb50d21bfb263935c6780}




Definition at line 487 of file VisualBlock.cpp.

References OnVisualInputSelected.

Referenced by updateVisualComponents().\hypertarget{classVisualBlock_79906715a0a58e622284b4be0402d13d}{
\index{VisualBlock@{VisualBlock}!OutputSelected@{OutputSelected}}
\index{OutputSelected@{OutputSelected}!VisualBlock@{VisualBlock}}
\subsubsection[OutputSelected]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::OutputSelected (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_79906715a0a58e622284b4be0402d13d}




Definition at line 493 of file VisualBlock.cpp.

References OnVisualOutputSelected.

Referenced by updateVisualComponents().\hypertarget{classVisualBlock_0dd05c49185b9c4ed3c2067c2887207c}{
\index{VisualBlock@{VisualBlock}!InputShowHistory@{InputShowHistory}}
\index{InputShowHistory@{InputShowHistory}!VisualBlock@{VisualBlock}}
\subsubsection[InputShowHistory]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::InputShowHistory (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_0dd05c49185b9c4ed3c2067c2887207c}




Definition at line 499 of file VisualBlock.cpp.

References OnVInputHistory.

Referenced by updateVisualComponents().\hypertarget{classVisualBlock_a06f4f819f1ffb8210552be1b2588241}{
\index{VisualBlock@{VisualBlock}!OutputShowHistory@{OutputShowHistory}}
\index{OutputShowHistory@{OutputShowHistory}!VisualBlock@{VisualBlock}}
\subsubsection[OutputShowHistory]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::OutputShowHistory (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_a06f4f819f1ffb8210552be1b2588241}




Definition at line 505 of file VisualBlock.cpp.

References OnVOutputHistory.

Referenced by updateVisualComponents().\hypertarget{classVisualBlock_92cda5ed352c37bdf35821d733a9eec0}{
\index{VisualBlock@{VisualBlock}!BlockClick@{BlockClick}}
\index{BlockClick@{BlockClick}!VisualBlock@{VisualBlock}}
\subsubsection[BlockClick]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::BlockClick (TObject $\ast$ {\em Sender})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_92cda5ed352c37bdf35821d733a9eec0}




Definition at line 529 of file VisualBlock.cpp.

References altDown(), ctrlDown(), moving, OnSelect, OnSelectAdd, OnUnselect, selected, and setSelected().

Referenced by VisualBlock().\hypertarget{classVisualBlock_4105b606e41f9682f565a982e5ba78ac}{
\index{VisualBlock@{VisualBlock}!BlockMouseDown@{BlockMouseDown}}
\index{BlockMouseDown@{BlockMouseDown}!VisualBlock@{VisualBlock}}
\subsubsection[BlockMouseDown]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::BlockMouseDown (TObject $\ast$ {\em Sender}, \/  TMouseButton {\em Button}, \/  TShiftState {\em Shift}, \/  int {\em X}, \/  int {\em Y})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_4105b606e41f9682f565a982e5ba78ac}




Definition at line 554 of file VisualBlock.cpp.

References BlockMouseMove(), BlockMouseUp(), button, moving, oldPoint, OnSelect, OnSelectAdd, PIWOMAINCLASSTYPE, selected, and setSelected().

Referenced by VisualBlock().\hypertarget{classVisualBlock_e4aaf7841bf53a143a3c83df422dc387}{
\index{VisualBlock@{VisualBlock}!BlockMouseUp@{BlockMouseUp}}
\index{BlockMouseUp@{BlockMouseUp}!VisualBlock@{VisualBlock}}
\subsubsection[BlockMouseUp]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::BlockMouseUp (TObject $\ast$ {\em Sender}, \/  TMouseButton {\em Button}, \/  TShiftState {\em Shift}, \/  int {\em X}, \/  int {\em Y})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_e4aaf7841bf53a143a3c83df422dc387}




Definition at line 601 of file VisualBlock.cpp.

References moving, and PIWOMAINCLASSTYPE.

Referenced by BlockMouseDown(), and VisualBlock().\hypertarget{classVisualBlock_f88b17e4ee367aa1bd52e0ba403e3ec9}{
\index{VisualBlock@{VisualBlock}!BlockMouseMove@{BlockMouseMove}}
\index{BlockMouseMove@{BlockMouseMove}!VisualBlock@{VisualBlock}}
\subsubsection[BlockMouseMove]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall VisualBlock::BlockMouseMove (TObject $\ast$ {\em Sender}, \/  TShiftState {\em Shift}, \/  int {\em X}, \/  int {\em Y})\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_f88b17e4ee367aa1bd52e0ba403e3ec9}




Definition at line 609 of file VisualBlock.cpp.

References button, moving, oldPoint, and OnBlockMove.

Referenced by BlockMouseDown(), and VisualBlock().\hypertarget{classVisualBlock_120c84328c3017aec8fc669d156883a6}{
\index{VisualBlock@{VisualBlock}!resizeAll@{resizeAll}}
\index{resizeAll@{resizeAll}!VisualBlock@{VisualBlock}}
\subsubsection[resizeAll]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::resizeAll ()\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_120c84328c3017aec8fc669d156883a6}




Definition at line 411 of file VisualBlock.cpp.

References bottomOutput, leftInput, rightOutput, status, title, and topInput.

Referenced by updateVisualComponents().\hypertarget{classVisualBlock_f4bfdf59b184dd79ceaacb57f9acfd66}{
\index{VisualBlock@{VisualBlock}!getInputPosition@{getInputPosition}}
\index{getInputPosition@{getInputPosition}!VisualBlock@{VisualBlock}}
\subsubsection[getInputPosition]{\setlength{\rightskip}{0pt plus 5cm}{\bf Position} VisualBlock::getInputPosition ({\bf BlockInput} $\ast$ {\em object})}}
\label{classVisualBlock_f4bfdf59b184dd79ceaacb57f9acfd66}


Pobiera pozycje wejscia do bloku \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em object}]wejscie \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pozycja \end{Desc}


Definition at line 122 of file VisualBlock.cpp.

References Position::direction, leftInput, topInput, and Position::xy.

Referenced by Connection::connectionOk(), and Connection::draw().\hypertarget{classVisualBlock_840c712434dddf714a3cee9200073114}{
\index{VisualBlock@{VisualBlock}!getOutputPosition@{getOutputPosition}}
\index{getOutputPosition@{getOutputPosition}!VisualBlock@{VisualBlock}}
\subsubsection[getOutputPosition]{\setlength{\rightskip}{0pt plus 5cm}{\bf Position} VisualBlock::getOutputPosition ({\bf BlockOutput} $\ast$ {\em object})}}
\label{classVisualBlock_840c712434dddf714a3cee9200073114}


Pobiera pozycje wyjscia z bloku \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em object}]wyjscia \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pozycja \end{Desc}


Definition at line 156 of file VisualBlock.cpp.

References bottomOutput, Position::direction, rightOutput, and Position::xy.

Referenced by Connection::connectionOk(), and Connection::draw().\hypertarget{classVisualBlock_c7db3e3d6aabc762ea055453855c7448}{
\index{VisualBlock@{VisualBlock}!setConfigButtonGlyph@{setConfigButtonGlyph}}
\index{setConfigButtonGlyph@{setConfigButtonGlyph}!VisualBlock@{VisualBlock}}
\subsubsection[setConfigButtonGlyph]{\setlength{\rightskip}{0pt plus 5cm}bool VisualBlock::setConfigButtonGlyph (Graphics::TBitmap $\ast$ {\em bmp})}}
\label{classVisualBlock_c7db3e3d6aabc762ea055453855c7448}


Ustawia nowy obrazek jako obrazek pokazujacy sie na przycusku konfiguracyjnym \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bmp}]obrazek \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true jesli operacja sie powiodla \end{Desc}


Definition at line 197 of file VisualBlock.cpp.

References configButton.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), and PIWOEngine::loadFromFile().\hypertarget{classVisualBlock_62361923d36c7162a2ce8919e4f0949f}{
\index{VisualBlock@{VisualBlock}!setTitle@{setTitle}}
\index{setTitle@{setTitle}!VisualBlock@{VisualBlock}}
\subsubsection[setTitle]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::setTitle (const AnsiString \& {\em s})}}
\label{classVisualBlock_62361923d36c7162a2ce8919e4f0949f}


Ustawia tytul bloczka \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s}]nowy tytul \end{description}
\end{Desc}


Definition at line 204 of file VisualBlock.cpp.

References block, Block::title, and title.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), and PIWOEngine::loadFromFile().\hypertarget{classVisualBlock_a7581d6b296ce3069bd7e16438fd330e}{
\index{VisualBlock@{VisualBlock}!getTitle@{getTitle}}
\index{getTitle@{getTitle}!VisualBlock@{VisualBlock}}
\subsubsection[getTitle]{\setlength{\rightskip}{0pt plus 5cm}AnsiString VisualBlock::getTitle ()}}
\label{classVisualBlock_a7581d6b296ce3069bd7e16438fd330e}


Pobiera aktualny tytul bloczka \begin{Desc}
\item[Returns:]tytul \end{Desc}


Definition at line 211 of file VisualBlock.cpp.

References title.

Referenced by PIWOEngine::CancelCustomizationOnSelectedConnections(), PIWOEngine::DeleteSelectedConnection(), PIWOEngine::loadFromFile(), PIWOEngine::MakeConnection(), PIWOEngine::OnConnectionSelect(), PIWOEngine::OnVisualBlockConfigClick(), PIWOEngine::OnVisualBlockInputHistoryClick(), PIWOEngine::OnVisualBlockInputSelected(), PIWOEngine::OnVisualBlockOutputHistoryClick(), PIWOEngine::OnVisualBlockOutputSelected(), PIWOEngine::OnVisualBlockUnselect(), THistory::refresh(), PIWOEngine::runBlock(), PIWOEngine::UnselectSelectedConnection(), Connection::update(), and PIWOEngine::validateBlock().\hypertarget{classVisualBlock_c484b8959917ac7901aad3ac60740b0d}{
\index{VisualBlock@{VisualBlock}!updateVisualComponents@{updateVisualComponents}}
\index{updateVisualComponents@{updateVisualComponents}!VisualBlock@{VisualBlock}}
\subsubsection[updateVisualComponents]{\setlength{\rightskip}{0pt plus 5cm}bool VisualBlock::updateVisualComponents ()}}
\label{classVisualBlock_c484b8959917ac7901aad3ac60740b0d}


Dostosowuje wizualne infomacje o bloczku do informacji zawartych w niskopoziomowej klasie \hyperlink{classBlock}{Block}. \begin{Desc}
\item[Returns:]false gdy wystapil blad \end{Desc}


Definition at line 216 of file VisualBlock.cpp.

References BlockInput::allowedTypes, block, configButton, BlockInput::getConnectedType(), BlockElement::getDescription(), BlockElement::getErrorCode(), BlockElement::getErrorDescription(), BlockOutput::getOutputType(), VisualInput::input, Block::input, InputSelected(), InputShowHistory(), leftInput, VisualInputOutput::OnShowHistory, VisualOutput::output, Block::output, OutputSelected(), OutputShowHistory(), resizeAll(), rightOutput, status, and title.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), PIWOEngine::runBlock(), and PIWOEngine::validateBlock().\hypertarget{classVisualBlock_22d016593be16c1d77e19c9a42d80afe}{
\index{VisualBlock@{VisualBlock}!updateHistory@{updateHistory}}
\index{updateHistory@{updateHistory}!VisualBlock@{VisualBlock}}
\subsubsection[updateHistory]{\setlength{\rightskip}{0pt plus 5cm}bool VisualBlock::updateHistory ()}}
\label{classVisualBlock_22d016593be16c1d77e19c9a42d80afe}


Aktualizuje historie usuwajac z niej wszelkie przedawnione i nieaktualne dane 

Definition at line 365 of file VisualBlock.cpp.

References block, bottomOutput, Block::getConfig(), BlockConfig::getRevision(), history, leftInput, rightOutput, and topInput.

Referenced by PIWOEngine::validateBlock().\hypertarget{classVisualBlock_8ca3f7d1dcc59e9383df931ed57a76c1}{
\index{VisualBlock@{VisualBlock}!setSelected@{setSelected}}
\index{setSelected@{setSelected}!VisualBlock@{VisualBlock}}
\subsubsection[setSelected]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::setSelected (bool {\em status})}}
\label{classVisualBlock_8ca3f7d1dcc59e9383df931ed57a76c1}


Zaznacza/Odznacza blok \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]true -zaznaczony, false - odznaczony \end{description}
\end{Desc}


Definition at line 511 of file VisualBlock.cpp.

References selected.

Referenced by PIWOEngine::AddBlock(), BlockClick(), BlockMouseDown(), and PIWOEngine::OnVisualBlockUnselect().\hypertarget{classVisualBlock_046a93138fb3800d114e176ab9e4c164}{
\index{VisualBlock@{VisualBlock}!isSelected@{isSelected}}
\index{isSelected@{isSelected}!VisualBlock@{VisualBlock}}
\subsubsection[isSelected]{\setlength{\rightskip}{0pt plus 5cm}bool VisualBlock::isSelected ()}}
\label{classVisualBlock_046a93138fb3800d114e176ab9e4c164}


Informuje o tym czy blok jest juz zaznaczony \begin{Desc}
\item[Returns:]true - zaznaczony, false - nie zaznaczony \end{Desc}


Definition at line 524 of file VisualBlock.cpp.

References selected.\hypertarget{classVisualBlock_849044a8c705427b0bce5a6808e53115}{
\index{VisualBlock@{VisualBlock}!setStatusColor@{setStatusColor}}
\index{setStatusColor@{setStatusColor}!VisualBlock@{VisualBlock}}
\subsubsection[setStatusColor]{\setlength{\rightskip}{0pt plus 5cm}void VisualBlock::setStatusColor (TColor {\em cl})}}
\label{classVisualBlock_849044a8c705427b0bce5a6808e53115}


Ustawia kolor statusu bloczka - widniejacy do okola przycisku konfiguracyjnego \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cl}]nowy kolor \end{description}
\end{Desc}


Definition at line 639 of file VisualBlock.cpp.

References status.

Referenced by PIWOEngine::runBlock().

\subsection{Member Data Documentation}
\hypertarget{classVisualBlock_12c5a7d37bad2fe96c1e681193e46692}{
\index{VisualBlock@{VisualBlock}!configButton@{configButton}}
\index{configButton@{configButton}!VisualBlock@{VisualBlock}}
\subsubsection[configButton]{\setlength{\rightskip}{0pt plus 5cm}TSpeedButton$\ast$ {\bf VisualBlock::configButton}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_12c5a7d37bad2fe96c1e681193e46692}




Definition at line 33 of file VisualBlock.h.

Referenced by setConfigButtonGlyph(), updateVisualComponents(), VisualBlock(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_fb8a08d0bdaabd2f2c9331c73b327e94}{
\index{VisualBlock@{VisualBlock}!title@{title}}
\index{title@{title}!VisualBlock@{VisualBlock}}
\subsubsection[title]{\setlength{\rightskip}{0pt plus 5cm}TLabel$\ast$ {\bf VisualBlock::title}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_fb8a08d0bdaabd2f2c9331c73b327e94}




Definition at line 34 of file VisualBlock.h.

Referenced by getTitle(), resizeAll(), setTitle(), updateVisualComponents(), VisualBlock(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_848de7730beb758d3c427f99ab78deaf}{
\index{VisualBlock@{VisualBlock}!status@{status}}
\index{status@{status}!VisualBlock@{VisualBlock}}
\subsubsection[status]{\setlength{\rightskip}{0pt plus 5cm}TPanel$\ast$ {\bf VisualBlock::status}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_848de7730beb758d3c427f99ab78deaf}




Definition at line 35 of file VisualBlock.h.

Referenced by resizeAll(), setStatusColor(), updateVisualComponents(), VisualBlock(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_6d94e21639a7e021c92a0fd31e859487}{
\index{VisualBlock@{VisualBlock}!selected@{selected}}
\index{selected@{selected}!VisualBlock@{VisualBlock}}
\subsubsection[selected]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf VisualBlock::selected}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_6d94e21639a7e021c92a0fd31e859487}




Definition at line 36 of file VisualBlock.h.

Referenced by BlockClick(), BlockMouseDown(), isSelected(), setSelected(), and VisualBlock().\hypertarget{classVisualBlock_e8a5a106bf510e7029c0f453e6ecd999}{
\index{VisualBlock@{VisualBlock}!moving@{moving}}
\index{moving@{moving}!VisualBlock@{VisualBlock}}
\subsubsection[moving]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf VisualBlock::moving}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_e8a5a106bf510e7029c0f453e6ecd999}




Definition at line 37 of file VisualBlock.h.

Referenced by BlockClick(), BlockMouseDown(), BlockMouseMove(), BlockMouseUp(), and VisualBlock().\hypertarget{classVisualBlock_b3035554398e30e608325b6c640ace2d}{
\index{VisualBlock@{VisualBlock}!button@{button}}
\index{button@{button}!VisualBlock@{VisualBlock}}
\subsubsection[button]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf VisualBlock::button}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_b3035554398e30e608325b6c640ace2d}




Definition at line 38 of file VisualBlock.h.

Referenced by BlockMouseDown(), and BlockMouseMove().\hypertarget{classVisualBlock_43953361a9b50884f92ed3e9ee90c5b2}{
\index{VisualBlock@{VisualBlock}!oldPoint@{oldPoint}}
\index{oldPoint@{oldPoint}!VisualBlock@{VisualBlock}}
\subsubsection[oldPoint]{\setlength{\rightskip}{0pt plus 5cm}TPoint {\bf VisualBlock::oldPoint}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classVisualBlock_43953361a9b50884f92ed3e9ee90c5b2}




Definition at line 39 of file VisualBlock.h.

Referenced by BlockMouseDown(), and BlockMouseMove().\hypertarget{classVisualBlock_76bfcfa68286004c352c4736635be0cb}{
\index{VisualBlock@{VisualBlock}!block@{block}}
\index{block@{block}!VisualBlock@{VisualBlock}}
\subsubsection[block]{\setlength{\rightskip}{0pt plus 5cm}{\bf Block} {\bf VisualBlock::block}}}
\label{classVisualBlock_76bfcfa68286004c352c4736635be0cb}


Blok w wersji niskopoziomowej 

Definition at line 54 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), PIWOEngine::OnVisualBlockConfigClick(), PIWOEngine::runBlock(), setTitle(), updateHistory(), updateVisualComponents(), and PIWOEngine::validateBlock().\hypertarget{classVisualBlock_08efb43e1546631cb54848002d809a23}{
\index{VisualBlock@{VisualBlock}!nameOfBlock@{nameOfBlock}}
\index{nameOfBlock@{nameOfBlock}!VisualBlock@{VisualBlock}}
\subsubsection[nameOfBlock]{\setlength{\rightskip}{0pt plus 5cm}AnsiString {\bf VisualBlock::nameOfBlock}}}
\label{classVisualBlock_08efb43e1546631cb54848002d809a23}




Definition at line 55 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), PIWOEngine::OnVisualBlockConfigClick(), PIWOEngine::runBlock(), PIWOEngine::validateBlock(), and VisualBlock().\hypertarget{classVisualBlock_726797ae619bdd874806321c7b878607}{
\index{VisualBlock@{VisualBlock}!numberOfBlock@{numberOfBlock}}
\index{numberOfBlock@{numberOfBlock}!VisualBlock@{VisualBlock}}
\subsubsection[numberOfBlock]{\setlength{\rightskip}{0pt plus 5cm}int {\bf VisualBlock::numberOfBlock}}}
\label{classVisualBlock_726797ae619bdd874806321c7b878607}




Definition at line 56 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_3bc0c90322c4b39a85de000a2d036413}{
\index{VisualBlock@{VisualBlock}!runned@{runned}}
\index{runned@{runned}!VisualBlock@{VisualBlock}}
\subsubsection[runned]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf VisualBlock::runned}}}
\label{classVisualBlock_3bc0c90322c4b39a85de000a2d036413}


Informacja o tym czy blok zostal juz uruchomiony - zmienna pomocnicza, wewnetrzna 

Definition at line 60 of file VisualBlock.h.

Referenced by PIWOEngine::runBlock(), and VisualBlock().\hypertarget{classVisualBlock_bae4197cd71315bf74e26e9e7f04bc8c}{
\index{VisualBlock@{VisualBlock}!history@{history}}
\index{history@{history}!VisualBlock@{VisualBlock}}
\subsubsection[history]{\setlength{\rightskip}{0pt plus 5cm}{\bf vectorBlockHistory} {\bf VisualBlock::history}}}
\label{classVisualBlock_bae4197cd71315bf74e26e9e7f04bc8c}


Historia bloku 

Definition at line 64 of file VisualBlock.h.

Referenced by PIWOEngine::OnVisualBlockInputHistoryClick(), PIWOEngine::OnVisualBlockOutputHistoryClick(), THistory::refresh(), PIWOEngine::runBlock(), updateHistory(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_8f4a1e25447f63dd82fef4ca1b5fa036}{
\index{VisualBlock@{VisualBlock}!leftInput@{leftInput}}
\index{leftInput@{leftInput}!VisualBlock@{VisualBlock}}
\subsubsection[leftInput]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf VisualInput}$\ast$$>$ {\bf VisualBlock::leftInput}}}
\label{classVisualBlock_8f4a1e25447f63dd82fef4ca1b5fa036}


Lista wejsc do bloku z lewej strony 

Definition at line 68 of file VisualBlock.h.

Referenced by getInputPosition(), resizeAll(), PIWOEngine::runBlock(), updateHistory(), updateVisualComponents(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_ea0803cef47e1cd7f3c3fd92268b2d5c}{
\index{VisualBlock@{VisualBlock}!topInput@{topInput}}
\index{topInput@{topInput}!VisualBlock@{VisualBlock}}
\subsubsection[topInput]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf VisualInput}$\ast$$>$ {\bf VisualBlock::topInput}}}
\label{classVisualBlock_ea0803cef47e1cd7f3c3fd92268b2d5c}


Lista wejsc do bloku z gornej strony 

Definition at line 72 of file VisualBlock.h.

Referenced by getInputPosition(), resizeAll(), PIWOEngine::runBlock(), updateHistory(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_e87bdb704a2ac4af6bc51b34456fdd1d}{
\index{VisualBlock@{VisualBlock}!rightOutput@{rightOutput}}
\index{rightOutput@{rightOutput}!VisualBlock@{VisualBlock}}
\subsubsection[rightOutput]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf VisualOutput}$\ast$$>$ {\bf VisualBlock::rightOutput}}}
\label{classVisualBlock_e87bdb704a2ac4af6bc51b34456fdd1d}


Lista wyjsc z bloku z prawej strony 

Definition at line 76 of file VisualBlock.h.

Referenced by getOutputPosition(), resizeAll(), PIWOEngine::runBlock(), updateHistory(), updateVisualComponents(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_c20150edf6b145056e52ef811d3e977a}{
\index{VisualBlock@{VisualBlock}!bottomOutput@{bottomOutput}}
\index{bottomOutput@{bottomOutput}!VisualBlock@{VisualBlock}}
\subsubsection[bottomOutput]{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf VisualOutput}$\ast$$>$ {\bf VisualBlock::bottomOutput}}}
\label{classVisualBlock_c20150edf6b145056e52ef811d3e977a}


Lista wyjsc z bloku z dolnej strony 

Definition at line 80 of file VisualBlock.h.

Referenced by getOutputPosition(), resizeAll(), PIWOEngine::runBlock(), updateHistory(), and $\sim$VisualBlock().\hypertarget{classVisualBlock_b342e90eddc48bc614d0a9da48f0e7e4}{
\index{VisualBlock@{VisualBlock}!OnConfigClick@{OnConfigClick}}
\index{OnConfigClick@{OnConfigClick}!VisualBlock@{VisualBlock}}
\subsubsection[OnConfigClick]{\setlength{\rightskip}{0pt plus 5cm}VisualFunction {\bf VisualBlock::OnConfigClick}}}
\label{classVisualBlock_b342e90eddc48bc614d0a9da48f0e7e4}


Event: gdy kliknieto przycisk konfiguracyjny 

Definition at line 85 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and SpeedButtonClick().\hypertarget{classVisualBlock_8fc6c9338da4af652d7d1fe170754f7b}{
\index{VisualBlock@{VisualBlock}!OnVisualInputSelected@{OnVisualInputSelected}}
\index{OnVisualInputSelected@{OnVisualInputSelected}!VisualBlock@{VisualBlock}}
\subsubsection[OnVisualInputSelected]{\setlength{\rightskip}{0pt plus 5cm}VisualBlock\_\-FunctionI {\bf VisualBlock::OnVisualInputSelected}}}
\label{classVisualBlock_8fc6c9338da4af652d7d1fe170754f7b}


Event: gdy kliknieto na wejscie bloku 

Definition at line 89 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), InputSelected(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_2c6a85164bf488a2b1055be8331aa813}{
\index{VisualBlock@{VisualBlock}!OnVisualOutputSelected@{OnVisualOutputSelected}}
\index{OnVisualOutputSelected@{OnVisualOutputSelected}!VisualBlock@{VisualBlock}}
\subsubsection[OnVisualOutputSelected]{\setlength{\rightskip}{0pt plus 5cm}VisualBlock\_\-FunctionO {\bf VisualBlock::OnVisualOutputSelected}}}
\label{classVisualBlock_2c6a85164bf488a2b1055be8331aa813}


Event: gdy kliknieto na wyjscie bloku 

Definition at line 93 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), OutputSelected(), and VisualBlock().\hypertarget{classVisualBlock_aa5ecd1d9c57caa0a9b08ece183dc9da}{
\index{VisualBlock@{VisualBlock}!OnVInputHistory@{OnVInputHistory}}
\index{OnVInputHistory@{OnVInputHistory}!VisualBlock@{VisualBlock}}
\subsubsection[OnVInputHistory]{\setlength{\rightskip}{0pt plus 5cm}VisualBlock\_\-FunctionHI {\bf VisualBlock::OnVInputHistory}}}
\label{classVisualBlock_aa5ecd1d9c57caa0a9b08ece183dc9da}


Event: gdy kliknieto prawym przycuskiem na wejscie bloku 

Definition at line 97 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), InputShowHistory(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_9a624de525f52a202cd57062f42332f3}{
\index{VisualBlock@{VisualBlock}!OnVOutputHistory@{OnVOutputHistory}}
\index{OnVOutputHistory@{OnVOutputHistory}!VisualBlock@{VisualBlock}}
\subsubsection[OnVOutputHistory]{\setlength{\rightskip}{0pt plus 5cm}VisualBlock\_\-FunctionHO {\bf VisualBlock::OnVOutputHistory}}}
\label{classVisualBlock_9a624de525f52a202cd57062f42332f3}


Event: gdy kliknieto prawym przyciskiem na wyjscie bloku 

Definition at line 101 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), OutputShowHistory(), and VisualBlock().\hypertarget{classVisualBlock_a01dc407b0ccc5d72e4ba2b3cc67bbc0}{
\index{VisualBlock@{VisualBlock}!OnBlockMove@{OnBlockMove}}
\index{OnBlockMove@{OnBlockMove}!VisualBlock@{VisualBlock}}
\subsubsection[OnBlockMove]{\setlength{\rightskip}{0pt plus 5cm}VisualBlock\_\-FunctionMove {\bf VisualBlock::OnBlockMove}}}
\label{classVisualBlock_a01dc407b0ccc5d72e4ba2b3cc67bbc0}


Event: gdy przesunieto blok 

Definition at line 105 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), BlockMouseMove(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_10238a1e11bc16de548c0e0ae7118ccf}{
\index{VisualBlock@{VisualBlock}!OnUnselect@{OnUnselect}}
\index{OnUnselect@{OnUnselect}!VisualBlock@{VisualBlock}}
\subsubsection[OnUnselect]{\setlength{\rightskip}{0pt plus 5cm}VisualFunction {\bf VisualBlock::OnUnselect}}}
\label{classVisualBlock_10238a1e11bc16de548c0e0ae7118ccf}


Event: gdy odznacozno blok 

Definition at line 109 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), BlockClick(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_425f00a0257fc0f25e01b8e4eb24f3f7}{
\index{VisualBlock@{VisualBlock}!OnSelect@{OnSelect}}
\index{OnSelect@{OnSelect}!VisualBlock@{VisualBlock}}
\subsubsection[OnSelect]{\setlength{\rightskip}{0pt plus 5cm}VisualFunction {\bf VisualBlock::OnSelect}}}
\label{classVisualBlock_425f00a0257fc0f25e01b8e4eb24f3f7}


Event: gdy gdy zaznacozno blok, ale zarzadano odznaczenia innych 

Definition at line 113 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), BlockClick(), BlockMouseDown(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and VisualBlock().\hypertarget{classVisualBlock_9398455ed1a288276ddc1845cd409d9f}{
\index{VisualBlock@{VisualBlock}!OnSelectAdd@{OnSelectAdd}}
\index{OnSelectAdd@{OnSelectAdd}!VisualBlock@{VisualBlock}}
\subsubsection[OnSelectAdd]{\setlength{\rightskip}{0pt plus 5cm}VisualFunction {\bf VisualBlock::OnSelectAdd}}}
\label{classVisualBlock_9398455ed1a288276ddc1845cd409d9f}


Event: gdy zaznaczono blok 

Definition at line 117 of file VisualBlock.h.

Referenced by PIWOEngine::AddBlock(), BlockClick(), BlockMouseDown(), PIWOEngine::DuplcateSelectedBlocks(), PIWOEngine::loadFromFile(), and VisualBlock().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/PIWO/Program/gui/\hyperlink{VisualBlock_8h}{VisualBlock.h}\item 
/PIWO/Program/gui/\hyperlink{VisualBlock_8cpp}{VisualBlock.cpp}\end{CompactItemize}
